package com.ruoyi.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 导航记录对象 car_navigation_record
 * 
 * @author ruoyi
 * @date 2025-01-27
 */
@Data
public class CarNavigationRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Integer id;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer userId;

    /** 起点地址 */
    @Excel(name = "起点地址")
    private String startAddress;

    /** 终点地址 */
    @Excel(name = "终点地址")
    private String endAddress;

    /** 起点经度 */
    @Excel(name = "起点经度")
    private String startLongitude;

    /** 起点纬度 */
    @Excel(name = "起点纬度")
    private String startLatitude;

    /** 终点经度 */
    @Excel(name = "终点经度")
    private String endLongitude;

    /** 终点纬度 */
    @Excel(name = "终点纬度")
    private String endLatitude;

    /** 导航距离（米） */
    @Excel(name = "导航距离")
    private Integer distance;

    /** 预计时间（分钟） */
    @Excel(name = "预计时间")
    private Integer estimatedTime;

    /** 导航状态（0进行中，1已完成，2已取消） */
    @Excel(name = "导航状态")
    private Integer status;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer deleted;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setStartAddress(String startAddress) 
    {
        this.startAddress = startAddress;
    }

    public String getStartAddress() 
    {
        return startAddress;
    }

    public void setEndAddress(String endAddress) 
    {
        this.endAddress = endAddress;
    }

    public String getEndAddress() 
    {
        return endAddress;
    }

    public void setStartLongitude(String startLongitude) 
    {
        this.startLongitude = startLongitude;
    }

    public String getStartLongitude() 
    {
        return startLongitude;
    }

    public void setStartLatitude(String startLatitude) 
    {
        this.startLatitude = startLatitude;
    }

    public String getStartLatitude() 
    {
        return startLatitude;
    }

    public void setEndLongitude(String endLongitude) 
    {
        this.endLongitude = endLongitude;
    }

    public String getEndLongitude() 
    {
        return endLongitude;
    }

    public void setEndLatitude(String endLatitude) 
    {
        this.endLatitude = endLatitude;
    }

    public String getEndLatitude() 
    {
        return endLatitude;
    }

    public void setDistance(Integer distance) 
    {
        this.distance = distance;
    }

    public Integer getDistance() 
    {
        return distance;
    }

    public void setEstimatedTime(Integer estimatedTime) 
    {
        this.estimatedTime = estimatedTime;
    }

    public Integer getEstimatedTime() 
    {
        return estimatedTime;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("startAddress", getStartAddress())
            .append("endAddress", getEndAddress())
            .append("startLongitude", getStartLongitude())
            .append("startLatitude", getStartLatitude())
            .append("endLongitude", getEndLongitude())
            .append("endLatitude", getEndLatitude())
            .append("distance", getDistance())
            .append("estimatedTime", getEstimatedTime())
            .append("status", getStatus())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("deleted", getDeleted())
            .toString();
    }
}
